﻿using System;

namespace Job.Core.Security.Permissions
{
    /// <summary>
    /// 权限处理接口。
    /// </summary>
    public interface IPermissionHandler
    {
        /// <summary>
        /// 判断是否有指定的权限。
        /// </summary>
        /// <param name="function">功能。</param>
        /// <param name="operate">操作。</param>
        /// <returns>有权限返回 true，否则返回 false。</returns>
        bool IsAuthorize(string function, string operate);
        
    }
}